package com.demo;

public class SkipLoopDemo1 {
    public static void main(String[] args) {

        //1.跳过某一次循环
        for (int i = 1; i <= 5; i++) {
            if(i==3){
                //结束本次循环，继续下次循环
                continue;
            }
            System.out.println("小老虎吃包子"+i);
        }
    }
}
